#ifndef H_JSENGINE
#define H_JSENGINE

#include <stdlib.h>
#include <iostream>
#include <string>
#include "geocoder.h"
#include "place.h"
#include "comment.h"

using namespace std;

struct JsEngine
{
public:
	JsEngine(); 
	~JsEngine();	
	//string runJS(string code, string input);
	void init(string code);
	void runJS(string code, Comment* comment, vector<Place>* places);
	void setGeocoder(Geocoder* newGeocoder);
};



#endif
